﻿@model SAIM.Models.SearchViewModel
@{
    ViewBag.Title = "Buscar usuario";
}

<h2>@ViewBag.Title.</h2>

<p class="text-success">@ViewBag.StatusMessage</p>

<div id="div-load">
</div>
<form class="form-inline">
    <hr />
    <div class="form-group">
        @Html.LabelFor(m => m.Id, new { @class = "col-md-3 control-label" })
        <div class="col-md-9">
            @Html.TextBoxFor(m => m.Id, new { @class = "form-control", @id = "user-id" })
        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(m => m.UserName, new { @class = "col-md-3 control-label" })
        <div class="col-md-9">
            @Html.TextBoxFor(m => m.UserName, new { @class = "form-control", @id = "user-name" })
        </div>
    </div>
    <div class="form-group">
        <div class="col-md-offset-3 col-md-9">
            <input id="search-user-btn" type="button" class="btn btn-default" value="Buscar" data-url="@Url.Action("_Get", "Users")" />
        </div>
    </div>
</form>

<div id="user-panel" class="table" style="margin-top: 20px;"></div>

@section Scripts {
    <script type="text/javascript" src="@Url.Content("~/Scripts/Users/SearchUser.js")"></script>
}
